package com.atguigu.bigdata.scala.chapter04

object Scala08_Flow {

    def main(args: Array[String]): Unit = {

        // TODO 循环 - while
        //var i = 10
        //while ( i > 0 ) {
            //println(i)
            //i = i - 1
        //}

        //val strings: Iterator[String] = Source.fromFile("xxxx").getLines()
        //while ( strings.hasNext ) {
            //strings.next()
        //}

//        while ( true ) {
//            Thread.sleep(1000)
//            println("XXXXXX")
//        }

        var i = 10
        do {
            println("20....")
        } while ( i > 20)
    }
}
